package com.atguigu.gmall.pms.feign.fallback;

import com.atguigu.gmall.common.bean.PageParamVo;
import com.atguigu.gmall.common.bean.ResponseVo;
import com.atguigu.gmall.pms.feign.GmallSmsClient;
import com.atguigu.gmall.sms.entity.SkuBoundsEntity;
import com.atguigu.gmall.sms.vo.ItemSaleVO;
import com.atguigu.gmall.sms.vo.SkuSaleVO;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class GmallSmsFallback implements GmallSmsClient {
    @Override
    public ResponseVo test1(String username, String password) {
        return ResponseVo.fail("失败");
    }

    @Override
    public ResponseVo test2(String id) {
        return ResponseVo.fail("失败");
    }

    @Override
    public ResponseVo test3(PageParamVo paramVo) {
        return ResponseVo.fail("失败");
    }

    @Override
    public ResponseVo test4(PageParamVo paramVo) {
        return ResponseVo.fail("失败");
    }

    @Override
    public ResponseVo<SkuBoundsEntity> querySkuBounds(Long skuId) {
            return ResponseVo.fail("失败");
    }

    @Override
    public ResponseVo<List<ItemSaleVO>> querySkuSalesBySkuId(Long skuId) {
        return  ResponseVo.fail("失败");
    }

    @Override
    public ResponseVo saveSkuSales(SkuSaleVO skuSaleVO) {
        return ResponseVo.fail("失败");
    }
}
